package com.dy.springcloud.service;

import com.dy.springcloud.entity.Result;
import org.springframework.stereotype.Component;

//为openfeign 远程调用的接口创建实现类，重写方法为马上返回一个信息
@Component
public class MemberFeignFallbackService implements MemberOpenFeignService{
    @Override
    public Result getMemberById(Long id) {
        return Result.error("400","被调用服务远程，熔断降级，快速返回失败");
    }
}
